#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import wordwordbookappend_blueprint
from api_1_0.wordWordbookAppendResource.wordWordbookAppendResource import WordWordbookAppendResource
from api_1_0.wordWordbookAppendResource.wordWordbookAppendOtherResource import WordWordbookAppendOtherResource

api = Api(wordwordbookappend_blueprint)

api.add_resource(WordWordbookAppendResource, '/wordWordbookAppend/<wordbook_append_id>', '/wordWordbookAppend', endpoint='WordWordbookAppend')


@wordwordbookappend_blueprint.route('/wordwordbookappend/update/<wordbook_append_id>', methods=['PUT'], endpoint='WordWordbookAppendUpdate')
def update(wordbook_append_id):
    return WordWordbookAppendOtherResource.sensitive_update(wordbook_append_id)
